import http from '@http/http'
export const mailList = (model) => http.GET('/api/mailbox/list',
  {
    'num': model.num,
    'pageNo': model.pageNo,
    'pageSize': model.pageSize
  })
export const setPublic = (mailDTO) => http.PUT('/api/mailbox/public', mailDTO)
export const setReply = (mailDTO) => http.PUT('/api/mailbox/reply', mailDTO)
export const deleteMailById = (mailId) => http.DELETE('/api/mailbox/delete/' + mailId)
export const addMail = (mailContent) => http.PUT('api/mailbox/add', mailContent)
export const userMailList = (model) => http.GET('/api/mailbox/userList', {
  'pageNo': model.pageNo,
  'pageSize': model.pageSize
})
